# coding=utf-8
# !/usr/bin/python

import os
import uuid


def createFile(file_path):
    if os.path.exists(file_path) is False:
        os.makedirs(file_path)
    # 切换路径至上面创建的文件夹
    os.chdir(file_path)
    # 查看当前工作目录
    cwd = os.getcwd()
    print('当前工作目录为 %s' % cwd)


# 获取uuid
def getuid():
    uid = str(uuid.uuid4())
    return ''.join(uid.split('-'))


if __name__ == '__main__':
    cnf = getuid()
    print(cnf)
